<template>
	<view class="conent tn-padding-sm">
		<view class="tn-text-xxl tn-margin-xs tn-margin-top-log">
			物业服务
		</view>
		<view class="tn-flex tn-margin-xs tn-padding-top-sm tn-flex-wrap">
			<view class="item tn-padding-sm tn-margin-xs tn-radius"
			v-for="(item,index) in ItemList"  :key="index">
				<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
					<view
						class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur  tn-color-purplered">
						<!-- <view class="tn-icon-fire-fill"></view> -->
						<image :src="item.icon" style="width:100%;height:100%"></image>
					</view>
					<view class="tn-color-black tn-text-center">
						<text class="tn-text-ellipsis">{{item.name}}</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				ItemList: [{
						name: '费用缴交',
						url: '',
						icon: '/static/images/expenses.png'
					},
					{
						name: '停车费',
						url: '',
						icon: '/static/images/Parking.png'
					},
					{
						name: '水电充值',
						url: '',
						icon: '/static/images/hydropower.png'
					},
					{
						name: '访客通行',
						url: '',
					    icon: '/static/images/visitor.png'
					},
					{
						name: '投诉咨询',
						url: '',
						icon: '/static/images/consultation.png'
					},
					{
						name: '报事维修',
						url: '',
						icon: '/static/images/Maintenance.png'
					},
					{
						name: '园区公告',
						url: '',
						icon: '/static/images/announcement.png'
					},
					{
						name: '一键开门',
						url: '',
						icon: '/static/images/open.png'
					},
					{
						name: '装修报备',
						url: '',
						icon: '/static/images/Renovation.png'
					},
					{
						name: '车位申请',
						url: '',
						icon: '/static/images/application.png'
					},
					{
						name: '预约服务',
						url: '',
						icon: '/static/images/booking.png'
					},
					{
						name: '物品放行',
						url: '',
						icon: '/static/images/Release.png'
					},
				]
			}
		}
	}
</script>

<style lang="scss" scoped>
	.template-index {
		max-height: 100vh;
	}

	.tn-tabbar-height {
		min-height: 100rpx;
		height: calc(120rpx + env(safe-area-inset-bottom) / 2);
	}
  .item{
	  width:30%
  }


	/* 图标容器12 start */
	.tn-three {
		position: absolute;
		top: 50%;
		right: 50%;
		bottom: 50%;
		left: 50%;
		transform: translate(-38rpx, -20rpx) rotateX(20deg) rotateY(10deg) rotateZ(-20deg);
		text-shadow: -1rpx 2rpx 0 #f0f0f0, -2rpx 4rpx 0 #f0f0f0, -10rpx 20rpx 30rpx rgba(0, 0, 0, 0.2);
	}

	.icon12 {
		&__item {
			width: 30%;
			background-color: #FFFFFF;
			border-radius: 10rpx;
			padding: 30rpx;
			margin: 20rpx 10rpx;
			transform: scale(1);
			transition: transform 0.3s linear;
			transform-origin: center center;

			&--icon {
				width: 60rpx;
				height: 60rpx;
				font-size: 60rpx;
				border-radius: 50%;
				margin-bottom: 18rpx;
				position: relative;
				z-index: 1;

				&::after {
					content: " ";
					position: absolute;
					z-index: -1;
					width: 100%;
					height: 100%;
					left: 0;
					bottom: 0;
					border-radius: inherit;
					opacity: 1;
					transform: scale(1, 1);
					background-size: 100% 100%;
					background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg6.png);


				}
			}
		}
	}
</style>